Skip to content

Add a code fixer for --isolatedDeclarations errors - #58260

Merged
Jake Bailey (jakebailey) merged 15 commits into
microsoft:mainfrom
h-joo:isolated-declaration-fixer
Apr 30, 2024
Merged

Jake Bailey (jakebailey) merged 15 commits into
microsoft:mainfrom
h-joo:isolated-declaration-fixer

Conversation

@h-joo

Copy link
Copy Markdown
Contributor

Add a code-fixer to fix type errors for --isolatedDeclarations

This is built on top of the errors added in PR #58201.

This code fixer fixes the following patterns.
1. Adding missing types in places that type can be explicitly annotated.
2. Adding satisfies with type assertion on a value.
3. Create a namespace for expando functions and declare the property on the namespace.
4. Factor out expressions in heritage clauses (class B extends ), give them separate names and export them.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants